(function($) {     
  //插件主要内容     
  $.fn.lin_shadePic = function(options) {        
    var opts = $.extend({}, $.fn.lin_shadePic.defaults, options);         
    return this.each(function() {  
		var $this=$(this),$listLi=$this.find(opts.childElement);
		$listLi.each(function(i){
			var $li=$(this),
			width=$(this).find('img').attr('width'),
			height=$(this).find('img').attr('height');
		    var child="<span style='display:none;width:"+width+"px;height:"+height+"px;position:absolute;left:0px; top:0px; background: none repeat scroll 0% 0% rgb(0, 0, 0); opacity:0; cursor: pointer;' class='"+opts.maskClass+"'></span>";
			$li.find('a').append(child);
		});
		$listLi.hover(function(){
			$(this).find('.'+opts.maskClass).css({'opacity':0,'display':'block'}).end().siblings().find('.'+opts.maskClass).css({'opacity':opts.opacity,'display':'block'});
		});
		$this.mouseleave(function(){
			$('.'+opts.maskClass).css('opacity',0);						  
		});
    	
    }); 
  };     
  $.fn.lin_shadePic.defaults = {     
		maskClass:'lin_mask',
		childElement:'li',
		opacity:'0.3'		
  };         
})(jQuery); 